<?php

 class KT_system_core_ {
        
        function toString($type = '') {
                
                foreach($this as $key => $item) {
                        if($type == 'get') $return[] = $key.'='.$item;
                        else $return[] = $key.' '.$item;
                }
                        
                if($type == "get") return implode('&', $return);
                else return implode(' ', $return);
                
        }
        
        function toArray() {
                foreach($this as $key => $item) {
                          $return[$key] = $item;
                }  
                
                return $return;
        }
/*
        function getVar($var) {
        	return $this->$var;
        }
  */      
 }

?>
